<?php

namespace Admin\Entity;

class Article {

    public $articleID;
    public $title;
    public $dateCreated;
    public $isPublisher;
    public $pictureThumnail;
    public $description;
    public $contentDetail;
    public $subCategoryID;

    public function getArticleID() {
        return $this->articleID;
    }

    public function setArticleID($articleID) {
        $this->articleID = $articleID;
    }

    public function getTitle() {
        return $this->title;
    }

    public function setTitle($title) {
        $this->title = $title;
    }

    public function getDateCreated() {
        return $this->dateCreated;
    }

    public function setDateCreated($dateCreated) {
        $this->dateCreated = $dateCreated;
    }

    public function getIsPublisher() {
        return $this->isPublisher;
    }

    public function setIsPublisher($isPublisher) {
        $this->isPublisher = $isPublisher;
    }

    public function getPictureThumnail() {
        return $this->pictureThumnail;
    }

    public function setPictureThumnail($pictureThumnail) {
        $this->pictureThumnail = $pictureThumnail;
    }

    public function getDescription() {
        return $this->description;
    }

    public function setDescription($description) {
        $this->description = $description;
    }

    public function getContentDetail() {
        return $this->contentDetail;
    }

    public function setContentDetail($contentDetail) {
        $this->contentDetail = $contentDetail;
    }

    public function getSubCategoryID() {
        return $this->subCategoryID;
    }

    public function setSubCategoryID($subCategoryID) {
        $this->subCategoryID = $subCategoryID;
    }

    public function exchangeArray($data) {
        $this->articleID = (isset($data['articleID'])) ? $data['articleID'] : null;
        $this->title = (isset($data['title'])) ? $data['title'] : null;
        $this->dateCreated = (isset($data['dateCreated'])) ? $data['dateCreated'] : null;
        $this->isPublisher = (isset($data['isPublisher'])) ? $data['isPublisher'] : null;
        $this->pictureThumnail = (isset($data['pictureThumnail'])) ? $data['pictureThumnail'] : null;
        $this->description = (isset($data['description'])) ? $data['description'] : null;
        $this->contentDetail = (isset($data['contentDetail'])) ? $data['contentDetail'] : null;
        $this->subCategoryID = (isset($data['subCategoryID'])) ? $data['subCategoryID'] : null;
    }

    public function getArrayCopy() {

        return get_object_vars($this);
    }

}

?>
